<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:include page="../include/header.jsp" />
<script type="text/javaScript">
<!--
	/* pagination 페이지 링크 function */
	function listPage(){
		$('#viewForm').attr('action', '<c:url value="/servicearea/serviceareaList.do"/>');
		$('#viewForm').submit();
	}
	
	function modifyPage(){
		$('#viewForm').attr('action', '<c:url value="/servicearea/serviceareaWriteForm.do"/>');
		$('#viewForm').submit();
	}
-->
</script>
<!-- contents s -->
<div class="container" id="container"> 
	<span class="round lt">&nbsp;</span>
	<span class="round rt">&nbsp;</span>
	<span class="round lb">&nbsp;</span>
	<span class="round rb">&nbsp;</span>
	<div class="container_area">
	<form name="viewForm" id="viewForm" action="<c:url value="/servicearea/serviceareaWriteForm.do"/>" method="post">
		<input type="hidden" name="ssa_area_key" id="ssa_area_key" value="${resultVO.ssa_area_key }"/>
		<h2 class="tit_h2">휴게소 관리</h2>
			<jsp:include page="../include/navi.jsp" />
			<!--<h3 class="tit_h3">기본 정보</h3>-->
               <div class="table_wrap"><!-- D : table은 div table_wrap 싸고감 -->
				<table summary="아이디 비밀번호 확인 입니다" class="table_write">
					<caption>아이디 비밀번호 확인</caption>
					<colgroup> <!-- D : col width로 테이블 넓이 조절 -->
						<col width="15%" />
						<col width="35%" />
						<col width="15%" />
						<col width="35%" />
					</colgroup>
					<tbody>
						<tr>
                           	<th scope="row">아이디</th>
							<td class="alL" colspan="3">
								${resultVO.ssa_login_id }
							</td>
						</tr>
						<tr>
                           	<th scope="row">패스워드</th>
							<td class="alL" colspan="3">
								${resultVO.ssa_pass_word }
							</td>
						</tr>
					</tbody>
				</table>
			</div>
			<div class="table_wrap">
				<table summary="현장명, 소재지, 권역, 담당자등 입력테이블 입니다" class="table_write">
					<caption>현장명, 소재지, 권역, 담당자등 입력테이블</caption>
					<colgroup> <!-- D : col width로 테이블 넓이 조절 -->
						<col width="15%" />
                           <col width="35%" />
                           <col width="15%" />
                           <col width="35%" />
					</colgroup>
					<tbody>
						<tr>
							<th scope="row">현장명</th>
							<td class="alL" colspan="3">
								${resultVO.ssa_area_name }
							</td>
						</tr>
						<tr>
							<th scope="row">소새지</th>
							<td class="alL" colspan="3">
								${resultVO.ssa_area_addr }
							</td>
						</tr>
						<tr>
							<th scope="row">권역</th>
							<td class="alL">
								${resultVO.scc_zone_aname}
							</td>
							<th scope="row">담당자</th>
							<td class="alL">
								${resultVO.ssa_admin_name}/${resultVO.ssa_admin_hp}
							</td>
						</tr>
                    	<tr>
							<th scope="row">시설용량</th>
							<td class="alL">
								${resultVO.ssa_area_capa }
							</td>
							<th scope="row">시공사</th>
							<td class="alL">
								${resultVO.ssa_builder }
							</td>
						</tr>
						<tr>
							<th scope="row">준공일자</th>
							<td class="alL">
								${resultVO.ssa_build_date }
							</td>
							<th scope="row">용역기간</th>
							<td class="alL">
								${resultVO.ssa_serv_sdate } ~ ${resultVO.ssa_serv_edate }
							</td>
						</tr>
						<tr>
							<th scope="row">전화번호</th>
							<td class="alL">
								${resultVO.ssa_area_tel}
							</td>
							<th scope="row">팩스번호</th>
							<td class="alL">
								${resultVO.ssa_area_fax}
							</td>
						</tr>
						<tr>
							<th scope="row">상태</th>
							<td class="alL" colspan="3">
								<c:if test="${resultVO.ssa_flag_yn eq 'Y'}">사용</c:if>
								<c:if test="${resultVO.ssa_flag_yn eq 'N'}">삭제</c:if>
							</td>
						</tr>
					</tbody>
				</table>
			</div>
			<div class="table_wrap"><!-- D : table은 div table_wrap 싸고감 -->
				<table summary="휴게소 관리자 테이블 입니다" class="table_list" id="serviceareaManagerTable">
					<caption>휴게소 관리자</caption>
					<colgroup><col width="33.3%" /><col width="33.3%" /><col width="33.3%" /></colgroup>
					<thead>
						<tr>
						<th scope="col">직급</th>
						<th scope="col">이름</th>
						<th scope="col">전화번호</th>
						</tr>
					</thead>
					<tbody>
						<c:if test="${not empty resultVO.serviceAreaManagerVOList}">
							<c:forEach var="result" items="${resultVO.serviceAreaManagerVOList }" varStatus="status"> 
							<tr>
								<td>${result.ssm_job_title }</td>
								<td>${result.ssm_manager_name }</td>
								<td>${result.ssm_manager_tel }</td>
							</tr>		
							</c:forEach>
						</c:if>
						<c:if test="${empty resultVO.serviceAreaManagerVOList}">
							<tr>
								<td colspan="3">등록된 휴게소 담당자가 없습니다.</td>
							</tr>
						</c:if>
					</tbody>
				</table>
			</div><!--//table_wrap-->
			<div class="btn_bbs">
				<a href="<c:url value='/servicearea/serviceareaList.do' />" onclick="listPage();return false;" class="btn_wh">목록</a>
				<a href="<c:url value='/servicearea/serviceareaWriteForm.do' />?ssa_area_key=${resultVO.ssa_area_key }" onclick="modifyPage();return false;" class="btn_re">수정</a>
			</div>
			<!-- 검색조건 유지 -->
			<input type="hidden" name="pageIndex" id="pageIndex" value="${resultVO.pageIndex }"/>
		</form>
	</div><!--//container_area-->
</div>
<!-- contents e -->
<jsp:include page="../include/footer.jsp" />
